package com.ujson.base.domain.repository.impl;

import com.ujson.base.domain.entity.Aggregate;
import com.ujson.base.domain.entity.Identifier;
import com.ujson.base.domain.repository.AggregateManager;

public class AggregateManagerFactory {

    public static <T extends Aggregate<ID>, ID extends Identifier> AggregateManager<T, ID> newInstance(Class<T> targetClass) {
        return new ThreadLocalAggregateManager<>(targetClass);
    }

}
